FROM openjdk:8-jre

ARG JAR_FILE

RUN echo "Asia/Shanghai" > /etc/timezone &&\
	rm -f /etc/localtime &&\
	dpkg-reconfigure -f noninteractive tzdata

RUN mkdir /app &&\
	mkdir /app/logs

ADD target/${JAR_FILE} /app/app-web.jar

WORKDIR /app

ENTRYPOINT ["java","-jar","app-web.jar"]
